package com.design.absfactory.factory;

import com.design.absfactory.impl.AmdCpu;
import com.design.absfactory.impl.AmdMainboard;
import com.design.absfactory.inter.AbstractFactory;
import com.design.absfactory.inter.Cpu;
import com.design.absfactory.inter.Mainboard;

/**
 * Created by Administrator on 2016/8/27.
 */
public class AmdFactory implements AbstractFactory {
    @Override
    public Cpu createCpu() {
        return new AmdCpu(938);
    }

    @Override
    public Mainboard createMainboard() {
        return new AmdMainboard(938);
    }
}
